/**
 * @ClassName LC43
 * 字符串相乘
 * @Author ykx
 * @Date 2024/3/3 15:00
 * @Version 1.0
 */
public class LC43 {
    public String multiply(String num1, String num2) {
        double res;
        double n1 = 0, n2 = 0;
        for (int i = 0; i < num1.length(); i++) {
            n1 = n1 * 10 + (num1.charAt(i) - '0');
        }
        for (int i = 0; i < num2.length(); i++) {
            n2 = n2 * 10 + (num2.charAt(i) - '0');
        }
        res = n1 * n2;
        return String.valueOf(res).replace(".0", "");
    }
}
